package com.thinkingcoder.tcgateway.router;

import static org.springframework.web.reactive.function.server.RouterFunctions.route;

import org.springframework.stereotype.Component;

@Component
public class GatewayRouter {

    // @Autowired
    // private GatewayProperties gatewayProperties;
    //
    // @Autowired
    // private HelloHandler helloHandler;
    //
    // @Autowired
    // private GatewayHandler gatewayHandler;
    //
    // @Autowired
    // private GatewayWebHandler gatewayWebHandler;
    //
    // @Bean
    // public RouterFunction<?> helloRouteFunc() {
    // return route(GET("/hello"), helloHandler::handle);
    // }

    // @Bean
    // public RouterFunction<ServerResponse> gatewayRouteFunc() {
    // return route(GET(gatewayProperties.getContextPath()).or(POST(gatewayProperties.getContextPath() + "/**")),
    // gatewayHandler::handle);
    // }

}
